//
//  Utils.h
//  HollyPhoneSdk
//
//  Created by hollycrm on 2023/2/3.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define CallPageChange @"CallPageChange"
#define BadNetWork @"BadNetWork"
#define NoNetWork @"NoNetWork"
#define InitStateChange @"phoneInitStateChange"
#define InitSuccess @"phoneInitSuccess"
#define InitFailed @"phoneInitFailed"


NS_ASSUME_NONNULL_BEGIN

@interface Utils : NSObject
+ (UIImage *)imageWithColor:(UIColor *)color;
+ (NSString *)getCallTimeStr:(int)seconds;
+ (NSBundle *)getSdkBundle;
+ (NSString *)chechNull:(NSString *)_theString;
+ (Boolean)isNumber:(NSString *)str;
+ (void)saveValue:(NSString *)val withKey:(NSString *)key;
+ (NSString*)readValueWithKey:(NSString *)key;
+ (UIImageView *)getBlurBg;
+ (void)request1139WithSerNo:(NSString *)serviceNum andUrl:(NSString *)url succ:(void (^)(NSString *mess)) success failed:(void (^) (NSString *mess)) failed;
+ (NSString *)generateUUIDString;
+ (void)checkMicrophoneAuthorizationStatus:(void(^)(Boolean ok))back;
+ (void)showMicrophonePermissionAlert;
+ (NSString *)currentDateStringWithFormat:(NSString *)format;

@end

NS_ASSUME_NONNULL_END
